#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class RoomManaRcd : Business.BusinessBase<RoomManaRcd, int>
	{
		#region Fields and Properties

		private int roomNum = 0;
		/// <summary>
		/// 
		/// </summary>
		public int RoomNum
		{
			get { return roomNum; }
			set
			{
				if (value != roomNum)
				{
					MarkChanged("RoomNum");
					roomNum = value;
				}
			}
		}

		private String roomCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String RoomCate
		{
			get { return roomCate; }
			set
			{
				if (value != roomCate)
				{
					MarkChanged("RoomCate");
					roomCate = value;
				}
			}
		}

		private int month = 0;
		/// <summary>
		/// 
		/// </summary>
		public int Month
		{
			get { return month; }
			set
			{
				if (value != month)
				{
					MarkChanged("Month");
					month = value;
				}
			}
		}

		private int term = 0;
		/// <summary>
		/// 
		/// </summary>
		public int Term
		{
			get { return term; }
			set
			{
				if (value != term)
				{
					MarkChanged("Term");
					term = value;
				}
			}
		}

		private String yearNum = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String YearNum
		{
			get { return yearNum; }
			set
			{
				if (value != yearNum)
				{
					MarkChanged("YearNum");
					yearNum = value;
				}
			}
		}

		private DateTime addDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime AddDate
		{
			get { return addDate; }
			set
			{
				if (value != addDate)
				{
					MarkChanged("AddDate");
					addDate = value;
				}
			}
		}

		private String teacherCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TeacherCode
		{
			get { return teacherCode; }
			set
			{
				if (value != teacherCode)
				{
					MarkChanged("TeacherCode");
					teacherCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public RoomManaRcd()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override RoomManaRcd DataSelect(int id)
		{
			return Services.DALService.RoomManaRcdService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.RoomManaRcdService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.RoomManaRcdService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.RoomManaRcdService.Delete(this);
		}

		#endregion Base overrides
	}
}
